package com.central.scheduler.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author Tindy
 * @date 2021/11/7
 * @describe
 * process task relation log
 */
@TableName("sch_process_task_relation_log")
public class ProcessTaskRelationLog extends ProcessTaskRelation {

    public ProcessTaskRelationLog() {
        super();
    }

    public ProcessTaskRelationLog(ProcessTaskRelation processTaskRelation) {
        super();
        this.setName(processTaskRelation.getName());
        this.setTaskType(processTaskRelation.getTaskType());
        this.setProcessDefinitionCode(processTaskRelation.getProcessDefinitionCode());
        this.setProcessDefinitionVersion(processTaskRelation.getProcessDefinitionVersion());
        this.setProId(processTaskRelation.getProId());
        this.setPreTaskName(processTaskRelation.getPreTaskName());
        this.setPostTaskName(processTaskRelation.getPostTaskName());
        this.setIsTmp(processTaskRelation.getIsTmp());
    }
}
